..Help .Objects

CPU Use

Measures the percentage of CPU used to calculate the circuit.

Pins
io letter name unit description
out Cpercentone value per sample frame (1024 samples)

Notes
The output is the ratio of calculation clock cycles to total clock cycles. Graphics, task switching and device IO are not included.
This object will not be available if your CPU does not support the RDTSC instruction.
To derive the bandwidth in MHz, multiply the output by the CPU speed displayed on the About panel. Use a Decay Filter with a one or two second time constant to get a stable average reading.
This object can be used to generate a logic pulse at the start of every frame. Run the output through a Delta object set to digital to produce a negative edge at the first sample, a positive edge at the second sample, and zero for the rest of the frame. The theory of operation is that the CPU percentage will be slightly different from one sample frame to the next. Note that this technique is not stable for small circuits.




©1999-2002 Andy J Turner
All rights reserved.